package dice.sinanya.tools.checkdata;

import dice.sinanya.entity.EntityTypeMessages;

import static dice.sinanya.system.MessagesSystem.useCustomRule;

public class ChangeUseCustomRule {
    public static void removeUseCustomRule(EntityTypeMessages entityTypeMessages) {
        //迭代器
        useCustomRule.removeIf(s -> s.equals(entityTypeMessages.getFromGroupString()));
    }

    public static void addUseCustomRule(EntityTypeMessages entityTypeMessages) {
        //迭代器
        useCustomRule.add(entityTypeMessages.getFromGroupString());
    }
}
